import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SFirstRole

export class SFirstRole {
  public __write(arg1: SerializeStream): void {
    arg1.writeString(this.name);
    arg1.writeInt(this.camp);
    arg1.writeInt(this.sex);
    arg1.writeInt(this.career);
    arg1.writeString(this.gateIp);
    arg1.writeString(this.server);
    arg1.writeString(this.platformCode);
  }

  public __read(arg1: SerializeStream): void {
    this.name = arg1.readString();
    this.camp = arg1.readInt();
    this.sex = arg1.readInt();
    this.career = arg1.readInt();
    this.gateIp = arg1.readString();
    this.server = arg1.readString();
    this.platformCode = arg1.readString();
  }

  public /* var */ name!: string;

  public /* var */ camp!: int;

  public /* var */ sex!: int;

  public /* var */ career!: int;

  public /* var */ gateIp!: string;

  public /* var */ server!: string;

  public /* var */ platformCode!: string;
}
